package com.app.micaihu.utils;

import android.content.Context;
import android.content.ContextWrapper;

/**
 * 伪分享context类
 * Created by linkai on 2017/6/23.
 */
public class HackerApp extends ContextWrapper {
    private String pkg;

    public HackerApp(Context base, String pkg) {
        super(base);
        this.pkg = pkg;
    }


    @Override
    public String getPackageName() {
        return pkg;
    }

    @Override
    public Context getApplicationContext() {
        return this;
    }
}
